package com.mall.client.eshop;

import java.util.List;

import com.mall.pojo.EshopTrade;
import com.mall.pojo.EshopTradeExample;

public interface EshopTradeService {
	/**
	 * 查找订单
	 * @param id
	 * @return
	 */
	EshopTrade getEshopTradeByEshopTradeId(Long id);
	
	/**
	 * 查找订单集合
	 * @param eshopTradeExample
	 * @return
	 */
	List<EshopTrade> getEshopTradeListByEshopTradeExample(EshopTradeExample eshopTradeExample);
	
	/**
	 * 添加订单
	 * @param eshopTrade
	 * @return
	 */
	int insertEshopTradeByEshopTrade(EshopTrade eshopTrade);
	
	/**
	 * 修改订单
	 * @param eshopTrade
	 * @return
	 */
	int modifyEshopTradeByEshopTrade(EshopTrade eshopTrade);
	
	int getEshopTradeCount(EshopTradeExample eshopTradeExample);
	
}
